	.file	"file_reader.c"
	.text
	.p2align 4,,15
.globl blankLinesToPrint
	.type	blankLinesToPrint, @function
blankLinesToPrint:
	pushl	%ebp
	movl	$1, %ecx
	movl	%esp, %ebp
	movl	24(%ebp), %eax
	movl	48(%ebp), %edx
	testl	%eax, %eax
	je	.L3
	movl	%eax, %ecx
.L3:
	movl	%edx, %eax
	sarl	$31, %edx
	idivl	%ecx
	popl	%ebp
	leal	(%edx,%eax), %eax
	ret
	.size	blankLinesToPrint, .-blankLinesToPrint
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%s"
	.text
	.p2align 4,,15
.globl applyLineHeader
	.type	applyLineHeader, @function
applyLineHeader:
	pushl	%ebp
	movl	%esp, %ebp
	subl	$72, %esp
	movl	48(%ebp), %eax
	movl	%ebx, -12(%ebp)
	movl	20(%ebp), %ebx
	movl	%esi, -8(%ebp)
	movl	12(%ebp), %esi
	movl	%edi, -4(%ebp)
	movl	52(%ebp), %edi
	movl	%eax, 40(%esp)
	movl	8(%ebp), %eax
	movl	%ebx, 12(%esp)
	movl	%esi, 4(%esp)
	movl	%eax, (%esp)
	movl	16(%ebp), %eax
	movl	%eax, 8(%esp)
	movl	24(%ebp), %eax
	movl	%eax, 16(%esp)
	movl	28(%ebp), %eax
	movl	%eax, 20(%esp)
	movl	32(%ebp), %eax
	movl	%eax, 24(%esp)
	movl	36(%ebp), %eax
	movl	%eax, 28(%esp)
	movl	40(%ebp), %eax
	movl	%eax, 32(%esp)
	movl	44(%ebp), %eax
	movl	%eax, 36(%esp)
	call	shouldFormat
	testl	%eax, %eax
	je	.L8
	movl	%esi, 12(%esp)
	movl	(%edi), %eax
	movl	$.LC0, 4(%esp)
	movl	$1, (%esp)
	movl	%eax, 8(%esp)
	call	__printf_chk
	addl	%ebx, (%edi)
.L8:
	movl	-12(%ebp), %ebx
	movl	-8(%ebp), %esi
	movl	-4(%ebp), %edi
	movl	%ebp, %esp
	popl	%ebp
	ret
	.size	applyLineHeader, .-applyLineHeader
	.section	.rodata.str1.1
.LC2:
	.string	"%s"
.LC1:
	.string	"\n"
	.text
	.p2align 4,,15
.globl readFile
	.type	readFile, @function
readFile:
	pushl	%ebp
	movl	%esp, %ebp
	pushl	%edi
	xorl	%edi, %edi
	pushl	%esi
	pushl	%ebx
	subl	$1212, %esp
	movl	48(%ebp), %eax
	movl	%gs:20, %edx
	movl	%edx, -28(%ebp)
	xorl	%edx, %edx
	movl	16(%ebp), %ebx
	movl	%eax, -128(%ebp)
	leal	63(%esp), %eax
	andl	$-16, %eax
	movl	%eax, -116(%ebp)
	movzwl	.LC1, %eax
	movl	%ebx, -36(%ebp)
	movw	%ax, -30(%ebp)
	.p2align 4,,7
	.p2align 3
.L21:
	movl	-128(%ebp), %edx
	movl	-116(%ebp), %eax
	movl	$1024, 4(%esp)
	movl	%edx, 8(%esp)
	movl	%eax, (%esp)
	call	fgets
	testl	%eax, %eax
	je	.L22
	movl	-116(%ebp), %edx
	movl	%edx, (%esp)
	call	isLineEmpty
	testl	%eax, %eax
	je	.L11
	addl	$1, %edi
	jmp	.L21
	.p2align 4,,7
	.p2align 3
.L11:
	movl	12(%ebp), %eax
	movl	20(%ebp), %edx
	movl	24(%ebp), %ecx
	movl	8(%ebp), %esi
	movl	%eax, -92(%ebp)
	movl	%eax, -72(%ebp)
	movl	28(%ebp), %eax
	movl	%edx, -100(%ebp)
	testl	%ecx, %ecx
	movl	%edx, -64(%ebp)
	movl	32(%ebp), %edx
	movl	%esi, -76(%ebp)
	movl	%eax, -104(%ebp)
	movl	%eax, -56(%ebp)
	movl	36(%ebp), %eax
	movl	%edx, -108(%ebp)
	movl	%edx, -52(%ebp)
	movl	40(%ebp), %edx
	movl	%ebx, -68(%ebp)
	movl	%eax, -120(%ebp)
	movl	%eax, -48(%ebp)
	movl	44(%ebp), %eax
	movl	%ecx, -60(%ebp)
	movl	%edx, -124(%ebp)
	movl	%edx, -44(%ebp)
	movl	%eax, -96(%ebp)
	movl	%eax, -40(%ebp)
	movl	$1, -112(%ebp)
	je	.L13
	movl	%ecx, -112(%ebp)
.L13:
	movl	%edi, %edx
	movl	%edi, %eax
	sarl	$31, %edx
	idivl	-112(%ebp)
	leal	(%edx,%eax), %edi
	testl	%edi, %edi
	movl	%edi, -112(%ebp)
	jle	.L15
	xorl	%edi, %edi
	movl	-124(%ebp), %edx
	jmp	.L16
	.p2align 4,,7
	.p2align 3
.L20:
	movl	12(%ebp), %eax
	movl	20(%ebp), %edx
	movl	8(%ebp), %esi
	movl	24(%ebp), %ecx
	movl	%eax, -92(%ebp)
	movl	28(%ebp), %eax
	movl	%edx, -100(%ebp)
	movl	32(%ebp), %edx
	movl	%eax, -104(%ebp)
	movl	36(%ebp), %eax
	movl	%edx, -108(%ebp)
	movl	40(%ebp), %edx
	movl	%eax, -120(%ebp)
	movl	44(%ebp), %eax
	movl	%eax, -96(%ebp)
.L16:
	leal	-36(%ebp), %eax
	addl	$1, %edi
	movl	%eax, 44(%esp)
	leal	-30(%ebp), %eax
	movl	%eax, 40(%esp)
	movl	-92(%ebp), %eax
	movl	%edx, 32(%esp)
	movl	-96(%ebp), %edx
	movl	%ecx, 16(%esp)
	movl	%ebx, 16(%ebp)
	movl	%eax, 4(%esp)
	movl	-100(%ebp), %eax
	movl	%edx, 36(%esp)
	movl	%esi, (%esp)
	movl	%ebx, 8(%esp)
	movl	%eax, 12(%esp)
	movl	-104(%ebp), %eax
	movl	%eax, 20(%esp)
	movl	-108(%ebp), %eax
	movl	%eax, 24(%esp)
	movl	-120(%ebp), %eax
	movl	%eax, 28(%esp)
	call	applyLineHeader
	leal	-30(%ebp), %eax
	movl	%eax, 8(%esp)
	movl	$.LC2, 4(%esp)
	movl	$1, (%esp)
	call	__printf_chk
	cmpl	-112(%ebp), %edi
	jl	.L20
	movl	12(%ebp), %edx
	movl	20(%ebp), %eax
	movl	8(%ebp), %esi
	movl	24(%ebp), %ecx
	movl	%edx, -92(%ebp)
	movl	28(%ebp), %edx
	movl	%eax, -100(%ebp)
	movl	32(%ebp), %eax
	movl	%edx, -104(%ebp)
	movl	36(%ebp), %edx
	movl	%eax, -108(%ebp)
	movl	40(%ebp), %eax
	movl	%edx, -120(%ebp)
	movl	44(%ebp), %edx
	movl	%eax, -124(%ebp)
	movl	%edx, -96(%ebp)
.L15:
	leal	-36(%ebp), %edx
	movl	-116(%ebp), %eax
	xorl	%edi, %edi
	movl	%edx, 44(%esp)
	movl	-92(%ebp), %edx
	movl	%ecx, 16(%esp)
	movl	%ebx, 16(%ebp)
	movl	%eax, 40(%esp)
	movl	-100(%ebp), %eax
	movl	%edx, 4(%esp)
	movl	-104(%ebp), %edx
	movl	%esi, (%esp)
	movl	%ebx, 8(%esp)
	movl	%eax, 12(%esp)
	movl	-108(%ebp), %eax
	movl	%edx, 20(%esp)
	movl	-120(%ebp), %edx
	movl	%eax, 24(%esp)
	movl	-124(%ebp), %eax
	movl	%edx, 28(%esp)
	movl	-96(%ebp), %edx
	movl	%eax, 32(%esp)
	movl	%edx, 36(%esp)
	call	applyLineHeader
	movl	-116(%ebp), %eax
	movl	$.LC2, 4(%esp)
	movl	$1, (%esp)
	movl	%eax, 8(%esp)
	call	__printf_chk
	jmp	.L21
	.p2align 4,,7
	.p2align 3
.L22:
	movl	-28(%ebp), %edx
	xorl	%gs:20, %edx
	jne	.L23
	leal	-12(%ebp), %esp
	popl	%ebx
	popl	%esi
	popl	%edi
	popl	%ebp
	.p2align 4,,3
	ret
.L23:
	call	__stack_chk_fail
	.size	readFile, .-readFile
	.section	.rodata.str1.1
.LC3:
	.string	"r"
.LC4:
	.string	"Error abriendo archivo %s\n"
	.text
	.p2align 4,,15
.globl readFiles
	.type	readFiles, @function
readFiles:
	pushl	%ebp
	movl	%esp, %ebp
	pushl	%edi
	pushl	%esi
	pushl	%ebx
	subl	$76, %esp
	movl	44(%ebp), %esi
	movl	40(%ebp), %eax
	testl	%esi, %esi
	movl	%eax, -32(%ebp)
	jle	.L25
	movl	%eax, %edi
	movl	$0, -28(%ebp)
	.p2align 4,,7
	.p2align 3
.L28:
	movl	$.LC3, 4(%esp)
	movl	(%edi), %eax
	movl	%eax, (%esp)
	call	fopen
	testl	%eax, %eax
	movl	%eax, %ebx
	je	.L31
	movl	-32(%ebp), %eax
	addl	$4, %edi
	movl	%esi, 44(%ebp)
	movl	%eax, 40(%ebp)
	movl	%ebx, 40(%esp)
	movl	8(%ebp), %eax
	movl	%eax, (%esp)
	movl	12(%ebp), %eax
	movl	%eax, 4(%esp)
	movl	16(%ebp), %eax
	movl	%eax, 8(%esp)
	movl	20(%ebp), %eax
	movl	%eax, 12(%esp)
	movl	24(%ebp), %eax
	movl	%eax, 16(%esp)
	movl	28(%ebp), %eax
	movl	%eax, 20(%esp)
	movl	32(%ebp), %eax
	movl	%eax, 24(%esp)
	movl	36(%ebp), %eax
	movl	%eax, 28(%esp)
	movl	-32(%ebp), %eax
	movl	%esi, 36(%esp)
	movl	%eax, 32(%esp)
	call	readFile
	movl	%eax, -36(%ebp)
	movl	%ebx, (%esp)
	call	fclose
	addl	$1, -28(%ebp)
	cmpl	%esi, -28(%ebp)
	jl	.L28
	movl	-36(%ebp), %eax
	addl	$76, %esp
	popl	%ebx
	popl	%esi
	popl	%edi
	popl	%ebp
	ret
	.p2align 4,,7
	.p2align 3
.L31:
	movl	(%edi), %eax
	movl	$.LC4, 8(%esp)
	movl	$1, 4(%esp)
	movl	%eax, 12(%esp)
	movl	stderr, %eax
	movl	%eax, (%esp)
	call	__fprintf_chk
	movl	$1, -36(%ebp)
	movl	-36(%ebp), %eax
	addl	$76, %esp
	popl	%ebx
	popl	%esi
	popl	%edi
	popl	%ebp
	ret
	.p2align 4,,7
	.p2align 3
.L25:
	movl	-32(%ebp), %eax
	movl	%esi, 44(%ebp)
	movl	%eax, 40(%ebp)
	movl	stdin, %eax
	movl	%eax, 40(%esp)
	movl	8(%ebp), %eax
	movl	%eax, (%esp)
	movl	12(%ebp), %eax
	movl	%eax, 4(%esp)
	movl	16(%ebp), %eax
	movl	%eax, 8(%esp)
	movl	20(%ebp), %eax
	movl	%eax, 12(%esp)
	movl	24(%ebp), %eax
	movl	%eax, 16(%esp)
	movl	28(%ebp), %eax
	movl	%eax, 20(%esp)
	movl	32(%ebp), %eax
	movl	%eax, 24(%esp)
	movl	36(%ebp), %eax
	movl	%eax, 28(%esp)
	movl	-32(%ebp), %eax
	movl	%esi, 36(%esp)
	movl	%eax, 32(%esp)
	call	readFile
	movl	%eax, -36(%ebp)
	movl	-36(%ebp), %eax
	addl	$76, %esp
	popl	%ebx
	popl	%esi
	popl	%edi
	popl	%ebp
	ret
	.size	readFiles, .-readFiles
	.ident	"GCC: (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3"
	.section	.note.GNU-stack,"",@progbits
